#!/usr/bin/env node

const Koa = requir('koa'),
      bodyparser =  require('koa-bodyparser'),
      loadRouters = require('require-directory');

const app = new Koa();

app.use(bodyparser({enableTypes:['json','form','text']}))

loadRouters(module,'./routes',{visit:(r)=>{
  app.use(r.routes());
}});

app.listen(8080);


